// 主路由
const Router = require('koa2-router');
import * as Koa from "koa";
const mainrouter = new Router();

mainrouter.get('/', async (ctx: any) => {
  await ctx.render('index', {
    extension: 'html'
  });
});

mainrouter.get('/error', async (ctx: any) => {
  await ctx.render('error', {
    extension: 'html'
  });
});

export { mainrouter };
